package com.hhsjdesign.dynamicui.core.property

import org.json.JSONObject

open class WidgetSpecProperty {

    var type: String? = null
    var statusBarHeight: Int = 0

    constructor() {
        statusBarHeight = 0
    }

    constructor(jo: JSONObject) : this(null, jo)

    constructor(widgetType: String?, jo: JSONObject) {
        widgetType?.let {
            this.type = it
        }
        statusBarHeight = jo.optInt("statusBarHeight")
    }

}